import request from '@/utils/request'

/**
 * 获取所有招聘信息
 * @param page
 * @returns {AxiosPromise}
 */
export function getAllRecruitCheckIsOk(page) {
  return request({
    url: '/student/getAllRecruitCheckIsOk',
    method: 'get',
    params: { 'page': page }
  })
}

/**
 * 提交申请
 * @returns {AxiosPromise}
 * @param recruitId
 * @param self
 */
export function saveApply(recruitId, self) {
  return request({
    url: '/student/saveApply',
    method: 'post',
    params: { 'recruitId': recruitId, 'self': self }
  })
}

/**
 * 根据学生ID获取他的申请书
 * @param page
 * @returns {AxiosPromise}
 */
export function getApplyByUserId() {
  return request({
    url: '/student/getApplyByUserId',
    method: 'get'
  })
}
